package com.xneure.enging;

import com.xneure.code.msg.MessageListener;

public interface Context {
	/**
	 * 返回是否有效
	 */
	public boolean isValid();

	/**
	 * 检查是否有效
	 */
	public void checkValid();

	public String getId();

	public <T> void registerListen(MessageListener<? super T> msg);

	public <T> void registerListen(Class<T> c, MessageListener<? super T> msg);

	public <T> void sendMessage(T msg, Enum<?> action);

}
